package xyz.lwm.lazycat.netpipe.domain.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.keygen.KeyGenerators;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户
 *
 * @author lwm
 */
@Data
@Table(value = "user", comment = "用户表")
@EqualsAndHashCode(callSuper = false)
public class User extends BaseEntity {

    /**
     * 用户ID
     */
    @Id(keyType = KeyType.Generator, value = KeyGenerators.ulid)
    @Column(value = "id", comment = "用户ID")
    private String id;

    /**
     * 用户名
     */
    @Column(value = "username", comment = "用户名")
    private String username;

    /**
     * 密码
     */
    @Column(value = "password", comment = "密码")
    private String password;

    /**
     * 昵称
     */
    @Column(value = "nick_name", comment = "昵称")
    private String nickName;

    /**
     * 头像 URL
     */
    @Column(value = "avatar", comment = "头像 URL")
    private String avatar;

}
